<?php
/**
 * Created by PhpStorm.
 * User: lijiajia
 * Date: 2017/3/22
 * Time: 下午11:55
 */
function httpReturn($status,$message,$data)
{
    $result = array(
        'status' => $status,
        'message' => $message,
        'data' => $data,
    );
    exit(json_encode($result));
}
function getParam($paramString){



//    preg_match($rule,$string,$result);
//    preg_match_all($rule,$string,$result);
    preg_match_all("/(\w+=\w+)(#\w+)?/i",$paramString,$result);

    if (isset($result)){

        $rest2 = $result[0];
        $restArray = array();

        foreach ($rest2 as $pa){
            $re = explode('=',$pa);
            if ($re[0] == 'id'){
                $re[0] = 'jeid';
            }
            $restArray[$re[0]] = $re[1];
        }
        return $restArray;
    }

    return null;
}